package RawDict;

import java.io.BufferedReader;
import java.io.IOException;

public class RawDictReader {
	private BufferedReader reader = null;
	private String content = "";
	private boolean needRead = true;
	
	public RawDictReader(BufferedReader r){
		reader = r;
	}
	
	public void SetContent(String s){
		content = s;
		needRead = false;
	}
	
	public String GetContent() throws IOException{
		if(needRead){
			content = reader.readLine();
		}
		needRead = true;
		return content;
	}

	public void GoBack(){
		needRead = false;
	}
}
